//
//  TeamView.m
//  NewNest
//
//  Created by hesiyao on 16/1/21.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "TeamView.h"

@implementation TeamView

- (void)dealloc
{
    [_nameLabel release];
    [_professionalLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // 名字
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height / 2)];
//        _nameLabel.backgroundColor = [UIColor redColor];
        
        [self addSubview:_nameLabel];
        [_nameLabel release];
        
        //职业
        self.professionalLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height / 2, _nameLabel.frame.size.width, _nameLabel.frame.size.height)];
        [self addSubview:_professionalLabel];
//        _professionalLabel.backgroundColor = [UIColor greenColor];
        _professionalLabel.font = [UIFont systemFontOfSize:15];
        _professionalLabel.textColor = [UIColor grayColor];
        [_professionalLabel release];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
